<T:ViewBase x:Class="WPFExcelReport.TGBVK"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"   
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Name="TV"
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <WrapPanel Name="ZoneOrder" >
            <Button Grid.Row="0" Click="Load_Click" Height="20" Margin="5,0,0,0" Width="24" BorderBrush="White">
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Reload.png" />
                </Button.Background>
            </Button>
        </WrapPanel>
        <DataGrid CanUserReorderColumns="True"   
                  Grid.Row="1"
                  Grid.Column="0"
                          FontSize="12"
                          CanUserResizeRows="True" 
                          CanUserSortColumns="True"                  
                          AutoGenerateColumns="False"   
                          EnableRowVirtualization="True"  
                          RowDetailsVisibilityMode="VisibleWhenSelected" 
                          HorizontalAlignment="Stretch" 
                          VerticalAlignment="Stretch"
                          IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                         ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}"   
                            Name="dlgMaster"
                          Margin="0,1,0,0" >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=LO}" Header="{Binding Source={Localization:TranslateExtension Word=LO}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=LB}" Header="{Binding Source={Localization:TranslateExtension Word=LB}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=BEM1}" Header="{Binding Source={Localization:TranslateExtension Word=包装}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=FBPART,Converter={StaticResource ResourceKey=gb2312}}" Header="{Binding Source={Localization:TranslateExtension Word=纱型}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=SPPART}" Header="{Binding Source={Localization:TranslateExtension Word=纺批}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ZWPART}" Header="{Binding Source={Localization:TranslateExtension Word=捻批}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ART}" Header="{Binding Source={Localization:TranslateExtension Word=纱线}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=VAR}" Header="{Binding Source={Localization:TranslateExtension Word=变量}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=FARBE}" Header="{Binding Source={Localization:TranslateExtension Word=色号}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=PATTEN}" Header="{Binding Source={Localization:TranslateExtension Word=包装组合}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=STOCKQTY}" Header="{Binding Source={Localization:TranslateExtension Word=当前库存}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=BS00}" Header="{Binding Source={Localization:TranslateExtension Word=昨日库存}}"  Width="Auto" />  
                <DataGridTextColumn Binding="{Binding Path=BS13}" Header="{Binding Source={Localization:TranslateExtension Word=生产}}"  Width="Auto" /> 
                <DataGridTextColumn Binding="{Binding Path=BS20}" Header="{Binding Source={Localization:TranslateExtension Word=发货}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=BS21}" Header="{Binding Source={Localization:TranslateExtension Word=接收}}"  Width="Auto" /> 
                <DataGridTextColumn Binding="{Binding Path=BS42}" Header="{Binding Source={Localization:TranslateExtension Word=手工出库}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=BS43}" Header="{Binding Source={Localization:TranslateExtension Word=手工入库}}"  Width="Auto" /> 
            </DataGrid.Columns>
        </DataGrid  > 
    </Grid> 
</T:ViewBase>
